public class ArrayDemo2 {
    public static void main (String [] args) {
        int [] borrowCounts = {8, 15, 5, 20, 12};
        String [] bookTitles = {"Java 编程基础", "数据结构与算法", "Python 入门", "数据库原理", "计算机网络"};
        borrowCounts [0] = 10;
        int count = 0;
        System.out.println ("借阅次数≥10 的图书：");
        for (int i = 0; i < borrowCounts.length; i++) {
            if (borrowCounts [i] >= 10) {
                System.out.println (bookTitles [i] + ":" + borrowCounts [i] + "次");
                count++;
            }
        }
        System.out.println ("共" + count + "本图书满足条件");
    }
}
